Repository navigation
fix: proyecto Node creado desde cero + release v3.0.1 - #20
Merged
Merged
Conversation
…iones exactas) + v3.0.1 Salió de instalar el kit en un proyecto TypeScript recién creado con npm init -y + npx tsc --init: - El pre-commit corría lint-staged sin configuración y fallaba en cada commit. Ahora se genera .lintstagedrc.mjs con lo que el proyecto ya tiene (prettier, eslint, tsc --noEmit); sin nada que revisar no se instala lint-staged y se retira el pre-commit de husky init. - node_modules/ no quedaba en .gitignore. - husky y compañía se instalaban con ^ y sin cooldown, contra §6.1: ahora -E y --before (7 días). - El resumen avisa del choque verbatimModuleSyntax + CommonJS que rompe todo import/export en un proyecto TS nuevo. Release v3.0.1: versión, CHANGELOG y pins del README/CONTRIBUTING.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Release 3.0.1 con correcciones que salieron de instalar el kit en un proyecto TypeScript creado desde cero (
npm init -y+npx tsc --init). El tagv3.0.1se crea sobremasterdespués del merge.pre-commitcorría lint-staged sin configuración, y lint-staged sin configuración sale con error, así que ningún commit pasaba. Ahora se genera.lintstagedrc.mjscon lo que el proyecto ya tiene (prettier, eslint,tsc --noEmitsi haytsconfig.json). Si no hay nada que revisar, no se instala lint-staged y se retira elpre-commitdehusky init, que corre unnpm testque falla por defecto. Una configuración existente se respeta.node_modules/no quedaba en.gitignore.npm initno crea uno y el kit instala devDeps, así que el primergit add .metía las dependencias al repo.^y sin cooldown. Ahora usa-Ey--before, con 7 días de antigüedad mínima.verbatimModuleSyntaxy CommonJS:tsc --init(TS ≥ 5.9) másnpm initdejan un proyecto donde ningúnimport/exportcompila.Test plan
npm run validateen verde;npm test: 96/96 (5 nuevos; los de husky en dry-run, sin red).npm init+tsc --init(TS 7.0.2): genera.lintstagedrc.mjscontsc --noEmit, versiones exactas (el cooldown eligió commitlint 21.2.3 en vez de 21.2.4),node_modules/ignorado, aviso de módulos en el resumen y lint-staged pasa.pre-commit; el primer commit pasa y commitlint rechaza un mensaje sin tipo.git tag -a v3.0.1sobre el commit de merge ygit push origin v3.0.1.